package com.knight.model.base;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

public abstract class BaseMessage<M extends BaseMessage<M>> extends Model<M> implements IBean {

	public M setId(Integer id) {
		set("id", id);
		return (M) this;
	}

	public Integer getId() {
		return get("id");
	}

	public M setAddress(String address) {
		set("address", address);
		return (M) this;
	}

	public String getAddress() {
		return get("address");
	}

	public M setClientName(String clientName) {
		set("clientName", clientName);
		return (M) this;
	}

	public String getClientName() {
		return get("clientName");
	}

	public M setCompany(String company) {
		set("company", company);
		return (M) this;
	}

	public String getCompany() {
		return get("company");
	}

	public M setPhone(String phone) {
		set("phone", phone);
		return (M) this;
	}

	public String getPhone() {
		return get("phone");
	}

	public M setTelephone(String telephone) {
		set("telephone", telephone);
		return (M) this;
	}

	public String getTelephone() {
		return get("telephone");
	}

	public M setMail(String mail) {
		set("mail", mail);
		return (M) this;
	}

	public String getMail() {
		return get("mail");
	}

	public M setContent(String content) {
		set("content", content);
		return (M) this;
	}

	public String getContent() {
		return get("content");
	}

	public M setCreateDate(Date createDate) {
		set("createDate", createDate);
		return (M) this;
	}

	public Date getCreateDate() {
		return get("createDate");
	}

	public M setStatus(String status) {
		set("status", status);
		return (M) this;
	}

	public String getStatus() {
		return get("status");
	}

}
